import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UserModule } from './user/user.module';
import { ArticleModule } from './article/article.module';
import { TypeModule } from './type/type.module';
import { TagModule } from './tag/tag.module';
import { UploadModule } from './upload/upload.module';

@Module({
  imports: [UserModule,MongooseModule.forRoot('mongodb://118.31.239.47:27017/blog'), ArticleModule, TypeModule, TagModule, UploadModule],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
